<?php

Ph::import("library.sm");

class ItemsModule extends Module
{
	public function __config()
	{
		$this->page->template = "control/index.tpl";
		$this->locale->add("control.ini");
		if ( !$this->site->admin_is_auth() )
		{
			$this->site->admin_clear_auth();
			header('Location: /panel/login');
		}
		
		$this->helper = new SMHelper( $this->site );
	}
	
	
	public function __default()
	{
		// Начальная страница Панели управления
		$this->helper->defaults();
		$this->helper->setMenuActive("items");
		$this->page->title("_titleCateg", true);
		$this->page->loadTplToVar("body", "categ/base.tpl");
		
		//$this->helper->addBodyTitleButton("/panel/stores/create", "_storesCreate", "blue");
	}
	
	
}